package client;

import java.awt.GridLayout;

import java.util.ArrayList;
import java.util.HashMap;

import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;



import model.Sensor;
import model.SensorController;

public class Tab2 extends JLabel{

	private static final long serialVersionUID = 1L;
	
	public Tab2() {
		//get the sensorcontroller so we can access the sensor values
		SensorController sensorcontroller = SensorController.getInstance();
		
        setLayout(new GridLayout(0,1));
        //Border lineBorder = BorderFactory.createLineBorder(Color.BLACK);
    	
        //Create and set up the content pane.
        JTable tabel = new JTable(sensorcontroller);
        tabel.setOpaque(true); //content panes must be opaque
        JScrollPane scrollpane = new JScrollPane(tabel);
        add(scrollpane);
	}
}
